package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * AlarmInfo
 */
public class AlarmInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 养殖池编号 */
    @Excel(name = "养殖池编号")
    private String poolNo;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alarmTime;

    /** 报警信息 */
    @Excel(name = "报警信息")
    private String alarmInfo;

    /** 报警值&预估值 */
    @Excel(name = "报警值&预估值")
    private String alarmVal;

    /** 报警类型 */
    @Excel(name = "报警类型")
    private String alarmType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPoolNo(String poolNo) 
    {
        this.poolNo = poolNo;
    }

    public String getPoolNo() 
    {
        return poolNo;
    }
    public void setAlarmTime(Date alarmTime) 
    {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() 
    {
        return alarmTime;
    }
    public void setAlarmInfo(String alarmInfo) 
    {
        this.alarmInfo = alarmInfo;
    }

    public String getAlarmInfo() 
    {
        return alarmInfo;
    }
    public void setAlarmVal(String alarmVal) 
    {
        this.alarmVal = alarmVal;
    }

    public String getAlarmVal() 
    {
        return alarmVal;
    }
    public void setAlarmType(String alarmType) 
    {
        this.alarmType = alarmType;
    }

    public String getAlarmType() 
    {
        return alarmType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("poolNo", getPoolNo())
            .append("alarmTime", getAlarmTime())
            .append("alarmInfo", getAlarmInfo())
            .append("alarmVal", getAlarmVal())
            .append("alarmType", getAlarmType())
            .toString();
    }
}
